package com.cloudlead.plugin.scheduler.service;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.common.lang.service.CrudService;
import com.cloudlead.plugin.scheduler.vo.ScheduleJob;

/**
 * ScheduleJobService is a Codegen service interface type
 */
@Label("计划任务服务")
public interface ScheduleJobService extends CrudService<ScheduleJob> {
	public static final String SCHEDULE_JOB_PARAM = "schedule_job";
	public static final String CLOUDLEAD_SCHEDULE_JOB_GROUP = "cloudlead_schedule_job_group";

	/**
	 * 启动任务
	 * 
	 * @param id
	 */
	public void updateScheduleJobStart(String id);
	
	/**
	 * 停止任务
	 * 
	 * @param id
	 */
	public void updateScheduleJobStop(String id);
	
	/**
	 * 暂停任务
	 * 
	 * @param id
	 */
	public void updateScheduleJobPause(String id);
	
	/**
	 * 恢复任务
	 * 
	 * @param id
	 */
	public void updateScheduleJobResume(String id);
}
